<?php

function pageCellRender($cell, $data) {
    switch ($cell->getColumn()->getName()) {
        case 'enabled':
            $text = $cell->getCellText();
            $status = Kd_Localize_Helper::getLanguageItems('status.boolean');
            return '<span>' . $status[$text] . '</span>';
    }
    return FALSE;
}
$this->grid->setCellRender(pageCellRender);
$this->setLayout('template' . DS . 'default.phtml');

$this->startBlock('topbar');
echo $this->navigation->toHtml();
$this->endBlock();

$this->startBlock();
echo $this->loadTemplate('share' . DS . 'areagrid.phtml', array('areas' => $this->areas, 'current_area_id' => $this->currentAreaId, 'grid' => $this->grid, 'toolbar' => $this->toolbar, 'pagination' => $this->pagination));
$this->endBlock();

$this->startBlock('bottombar');
echo $this->pagination->toHtml();
$this->endBlock();